package com.readygo.boot_test.entity.auth;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import java.io.Serializable;

@Embeddable
public class RoleKey implements Serializable {

    private static final long serialVersionUID = -5214326928571038809L;

    @Column(nullable = false)
    private Integer securityUserId;

    @Column(nullable = false)
    private String role;

    public Integer getSecurityUserId() {
        return securityUserId;
    }

    public void setSecurityUserId(Integer securityUserId) {
        this.securityUserId = securityUserId;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }
}
